import { post } from '@/utils/request'

// 收银机设备
export const listHardwareBrandsType = p => post(`/service-system/b/hardwareBrand/v1/listHardwareBrandsType/${p}`, p)
export const listHardwareBrandsMode = p => post(`/service-system/b/hardwareBrand/v1/listHardwareBrandsMode/${p.type}/${p.code}`, p)
export const listEquipmentEnum = p => post(`/service-system/b/hardwareBrand/v1/listEquipmentEnum/${p}`, p)
// 打印机设备
// 新增 保存
export const addPrinterEquipment = p => post(`/service-system/b/sysPrinterEquipment/v1/add`, p)
// 新增 修改
export const modifyPrinterEquipment = p => post(`/service-system/b/sysPrinterEquipment/v1/modify`, p)
// 详情
export const viewPrinterEquipment = p => post(`/service-system/b/sysPrinterEquipment/v1/view/${p}`, p)
// 列表
export const listPrinterEquipments = p => post(`/service-system/b/sysPrinterEquipment/v1/list`, p)
// 删除
export const delPrinterEquipment = p => post(`/service-system/b/sysPrinterEquipment/v1/del/${p}`, p)
// 状态
export const changePrinterEquipmentStatus = p => post(`/service-system/b/sysPrinterEquipment/v1/changeStatus/${p.id}/${p.status}`, p)

// 商户绑定Printer
// 新增 保存
export const addShopBindPrinterEquipment = p => post(`/service-system/b/sysBindPrinterEquipment/v1/add`, p)
// 新增 修改
export const modifyShopBindPrinterEquipment = p => post(`/service-system/b/sysBindPrinterEquipment/v1/modify`, p)
// 详情
export const viewShopBindPrinterEquipment = p => post(`/service-system/b/sysBindPrinterEquipment/v1/view/${p}`, p)
// 列表
export const listShopBindPrinterEquipment = p => post(`/service-system/b/sysBindPrinterEquipment/v1/pageList`, p)
// 删除
export const delShopBindPrinterEquipment = p => post(`/service-system/b/sysBindPrinterEquipment/v1/del/${p}`, p)
// 状态
export const changeShopBindPrinterEquipmentStatus = p => post(`/service-system/b/sysBindPrinterEquipment/v1/changeStatus/${p.id}/${p.status}`, p)
